﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OpenQA.Selenium;

namespace CERT.PageLibrary.Assertions {
	class AssertElementTextException : AssertionExceptionBase {
		string _elementDescription;
		string _expected;
		string _actual;
		const string BASIC_MESSAGE = "The expected text did not match the actual.";

		public AssertElementTextException(string elementDescription, string expected, string actual): base(BASIC_MESSAGE) {
			_elementDescription = elementDescription;
			_expected = expected;
			_actual = actual;
		}

		protected override string InternalMessage { get { return BASIC_MESSAGE + " Element [" + _elementDescription + "], Expected: [" + _expected + "], Actual: [" + _actual + "]"; } }

	}
}
